package com.itshops.dao;

import com.itshops.entity.Item;
import com.itshops.entity.Orders;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;

public interface OrderDao {
    void insertOrder(Orders orders) throws SQLException;

    void insertItems(List items) throws SQLException;

    List<Orders> selectByUid(int uid) throws InvocationTargetException, IllegalAccessException, SQLException;

    Orders selectOrderByOid(String oid) throws InvocationTargetException, IllegalAccessException, SQLException;

    List<Item> selectItemByOid(String oid) throws InvocationTargetException, IllegalAccessException, SQLException;

    void updateStateByOid(String oid) throws SQLException;
}
